package cn.itsource.remote;


import cn.dev33.satoken.annotation.SaIgnore;
import cn.itsource.feign.LoginApi;
import cn.itsource.pojo.domain.Login;
import cn.itsource.pojo.dto.LoginDto;
import cn.itsource.result.R;
import cn.itsource.service.ILoginService;
import cn.itsource.utils.NameUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


/**
 * Login接口类
 */
@RestController
public class LoginRemote implements LoginApi {

    @Autowired
    private ILoginService loginService;

    /**
     * 保存Login接口
     * @param loginDto
     * @return
     */
    @Override
    @SaIgnore //忽略拦截
    public R saveLogin( LoginDto loginDto) {

        loginService.saveLogin(loginDto);

        return R.success();
    }
}
